package com.example.shouYePoji.siYunShiPinTongJi;

import java.sql.Timestamp;

//视频类
public class VideoLei {
    //视频路径
    private String src;
    //视频上传时间
    private Timestamp creationTime;
    //视频id
    private int videoId;
    //视频大小
    private long videoSize;
    //视频点赞量
    private long videoLikes;
    //视频收藏量
    private long videoCollection;
    //视频浏览数
    private long videoViews;
    //所属课程（商品）id
    private int courseId;

    @Override
    public String toString() {
        return "VideoLei{" +
                "src='" + src + '\'' +
                ", creationTime=" + creationTime +
                ", videoId=" + videoId +
                ", videoSize=" + videoSize +
                ", videoLikes=" + videoLikes +
                ", videoCollection=" + videoCollection +
                ", videoViews=" + videoViews +
                ", courseId=" + courseId +
                '}';
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public Timestamp getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Timestamp creationTime) {
        this.creationTime = creationTime;
    }

    public int getVideoId() {
        return videoId;
    }

    public void setVideoId(int videoId) {
        this.videoId = videoId;
    }

    public long getVideoSize() {
        return videoSize;
    }

    public void setVideoSize(long videoSize) {
        this.videoSize = videoSize;
    }

    public long getVideoLikes() {
        return videoLikes;
    }

    public void setVideoLikes(long videoLikes) {
        this.videoLikes = videoLikes;
    }

    public long getVideoCollection() {
        return videoCollection;
    }

    public void setVideoCollection(long videoCollection) {
        this.videoCollection = videoCollection;
    }

    public long getVideoViews() {
        return videoViews;
    }

    public void setVideoViews(long videoViews) {
        this.videoViews = videoViews;
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public VideoLei() {
    }

    public VideoLei(String src, Timestamp creationTime, long videoSize, long videoLikes, long videoCollection, long videoViews, int courseId) {
        this.src = src;
        this.creationTime = creationTime;
        this.videoSize = videoSize;
        this.videoLikes = videoLikes;
        this.videoCollection = videoCollection;
        this.videoViews = videoViews;
        this.courseId = courseId;
    }

    public VideoLei(String src, Timestamp creationTime, int videoId, long videoSize, long videoLikes, long videoCollection, long videoViews, int courseId) {
        this.src = src;
        this.creationTime = creationTime;
        this.videoId = videoId;
        this.videoSize = videoSize;
        this.videoLikes = videoLikes;
        this.videoCollection = videoCollection;
        this.videoViews = videoViews;
        this.courseId = courseId;
    }
}
